package com.ruoyi.teaching.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teaching.mapper.YaAttendanceMapper;
import com.ruoyi.teaching.domain.YaAttendance;
import com.ruoyi.teaching.service.IYaAttendanceService;

/**
 * 考勤汇总Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-31
 */
@Service
public class YaAttendanceServiceImpl implements IYaAttendanceService 
{
    @Autowired
    private YaAttendanceMapper yaAttendanceMapper;

    /**
     * 查询考勤汇总
     * 
     * @param id 考勤汇总主键
     * @return 考勤汇总
     */
    @Override
    public YaAttendance selectYaAttendanceById(Long id)
    {
        return yaAttendanceMapper.selectYaAttendanceById(id);
    }

    /**
     * 查询考勤汇总列表
     * 
     * @param yaAttendance 考勤汇总
     * @return 考勤汇总
     */
    @Override
    public List<YaAttendance> selectYaAttendanceList(YaAttendance yaAttendance)
    {
        return yaAttendanceMapper.selectYaAttendanceList(yaAttendance);
    }

    /**
     * 新增考勤汇总
     * 
     * @param yaAttendance 考勤汇总
     * @return 结果
     */
    @Override
    public int insertYaAttendance(YaAttendance yaAttendance)
    {
        return yaAttendanceMapper.insertYaAttendance(yaAttendance);
    }

    /**
     * 修改考勤汇总
     * 
     * @param yaAttendance 考勤汇总
     * @return 结果
     */
    @Override
    public int updateYaAttendance(YaAttendance yaAttendance)
    {
        return yaAttendanceMapper.updateYaAttendance(yaAttendance);
    }

    /**
     * 批量删除考勤汇总
     * 
     * @param ids 需要删除的考勤汇总主键
     * @return 结果
     */
    @Override
    public int deleteYaAttendanceByIds(Long[] ids)
    {
        return yaAttendanceMapper.deleteYaAttendanceByIds(ids);
    }

    /**
     * 删除考勤汇总信息
     * 
     * @param id 考勤汇总主键
     * @return 结果
     */
    @Override
    public int deleteYaAttendanceById(Long id)
    {
        return yaAttendanceMapper.deleteYaAttendanceById(id);
    }
}
